package com.nacos.nacosconsume.controller;

import com.nacos.nacosconsume.feign.TestFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import static org.springframework.web.bind.annotation.RequestMethod.GET;

/**
 * @author wrb
 * @date 2020/4/8 17:49
 */
@RestController
public class TestController {

	@Autowired
	TestFeign testFeign;

	@RequestMapping(value = "/test", method = GET)
	@ResponseBody
	public String get() {
		return testFeign.get();
	}
}
